
file(GLOB AllCMakeFiles ThirdParty/*/CMakeLists.txt)
foreach( CMakeFile   ${AllCMakeFiles})
    get_filename_component(dir "${CMakeFile}" DIRECTORY)
    add_subdirectory(${dir})
endforeach()


# find all apps and add it
file(GLOB AllCMakeFiles */CMakeLists.txt)
foreach( CMakeFile   ${AllCMakeFiles})
    get_filename_component(dir "${CMakeFile}" DIRECTORY)
    message("Add application:" ${dir})
    add_subdirectory(${dir})
endforeach()
    